<?php
include('../includes/config.php');

require_once(DOCTRINE_INCLUDE_STRING);

spl_autoload_register(array('Doctrine', 'autoload'));

Doctrine_Manager::connection('mysql://root:haccp@localhost/stocks_logs');

// import method takes one parameter: the import directory (the directory where
// the generated record files will be put in
Doctrine::generateYamlFromDb(DIR_FT."yaml/yaml_logs.yml");
/*$contents = file_get_contents(DIR_FT."yaml\yaml_logs.yml");
file_put_contents(DIR_FT."yaml\yaml_logs.yml","connection: logs_connection\n".$contents);**/
Doctrine::generateModelsFromYaml(DIR_FT."yaml/yaml_logs.yml", DIR_FT.'models_logs');
?>